package com.example.HeadFirstDemo.Factory.AbstractFactory;

public class LuxuryFactory implements  CarFactory {
    Seat seat=new LuxurySeat();
    Engine engine=new LuxuryEngine();

    public LuxuryFactory(Seat seat, Engine engine) {
        this.seat = seat;
        this.engine = engine;
    }

    public Seat createSeat() {
        return seat;
    }

    public Engine createEngine() {
        return engine;
    }
}
